package com.haiyou.dc.netty.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

public class ImChatConstant {

    /**
     * 是否签收，1是，0否
     */
    @AllArgsConstructor
    @Getter
    public enum SignType {
        NO("0", "否"),
        YES("1", "是");
        private final String id;
        private final String name;
    }

    /**
     * 内容类型，1text，2image，3sound，4date
     */
    @AllArgsConstructor
    @Getter
    public enum msgType {
        TEXT("1", "text"),
        IMAGE("2", "image"),
        SOUND("3", "sound"),
        DATE("4", "date");
        private final String id;
        private final String name;
    }

    /**
     * 内容类型，1chat，2signle，3group
     */
    @AllArgsConstructor
    @Getter
    public enum ActionType {
        CHAT("1", "最近联系人"),
        SIGNLE("2", "单聊"),
        GROUP("3", "群聊");
        private final String id;
        private final String name;
    }

    /**
     * 消息类型
     */
    @AllArgsConstructor
    @Getter
    public enum Type {
        CONNECT("1", "第一次(或重连)初始化连接"),
        CHAT("2", "聊天消息"),
        SIGNLE("3", "单聊消息"),
        KEEPALIVE("4", "客户端保持心跳"),
        PULL_FRIEND("5", "拉取好友");

        private String type;
        private final String name;
    }
}
